<?php
	include("../materiel.php");
	$materiel = new Materiel();
	$categ = $materiel->getAllCategorie($_COOKIE["m2l"]);
	foreach ($categ as $categorie ) {
		echo '<h4 id="'.$categorie->id_materiel_sport.'">'.$categorie->designation_materiel_sport.'</h4>';
		$mat = $materiel->getAllMaterielByCategorie($categorie->id_materiel_sport);
		foreach ($mat as $listMateriel) {
			echo '<div id="'.$listMateriel->id_materiel.'">'.$listMateriel->description.'</div>';
		}
	}

?>